﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template.master" AutoEventWireup="true"
    CodeFile="Orders.aspx.cs" Inherits="Orders" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
table,td
{
	border               : 1px solid #CCC;
	border-collapse      : collapse;
  font                 : small/1.5 "Tahoma", "Bitstream Vera Sans", Verdana, Helvetica, sans-serif;
}
table
{
	border                :none;
	border                :1px solid #CCC;
}
thead th,
tbody th
{
	background            : #FFF url(th_bck.gif) repeat-x;
  color                 : #666;  
	padding               : 5px 10px;
  border-left           : 1px solid #CCC;
}
tbody th
{
  background            : #fafafb;
  border-top            : 1px solid #CCC;
  text-align            : left;
  font-weight           : normal;
}
tbody tr td
{
	padding               : 5px 10px;
  color                 : #666;
}
tbody tr:hover
{
  background            : #FFF url(images/tr_bck.gif) repeat;
}

tbody tr:hover td
{
  color                 : #454545;
}
tfoot td,
tfoot th
{
  border-left           : none;
  border-top            : 1px solid #CCC;
	padding               : 4px;
  background            : #FFF url(foot_bck.gif) repeat;
  color                 : #666;
}
caption
{
	text-align            : left;
	font-size             : 120%;
	padding               : 10px 0;
	color                 : #666;
}
table a:link
{
	color                 : #666;
}
table a:visited
{
	color                 : #666;
}
table a:hover
{
	color                 : #003366;
	text-decoration       : none;
}
table a:active
{
	color                 : #003366;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ListView ID="OrdersView" runat="server">
        <LayoutTemplate>
            <table>
                <thead>
                    <tr>
                        <td>
                            Номер
                        </td>
                        <td>
                            Дата заказа
                        </td>
                        <td>
                            Имя
                        </td>
                        <td>
                            Email
                        </td>
                        <td>
                            Телефон
                        </td>
                        <td>
                            Сумма
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:HyperLink runat="server" NavigateUrl='<%# string.Format("OrderItems.aspx?OrderId={0}",Eval("OrderId")) %>' Text='<%# Eval("OrderId") %>' />
                </td>
                <td>
                    <asp:HyperLink runat="server" NavigateUrl='<%# string.Format("OrderItems.aspx?OrderId={0}",Eval("OrderId")) %>' Text=' <%# Eval("OrderDate") %>' />
                </td>
                <td>
                    <%# Eval("UserName") %>
                </td>
                <td>
                    <%# Eval("CustomerEmail") %>
                </td>
                <td>
                    <%# Eval("CustomerPhone") %>
                </td>
                <td>
                    <%# Eval("SubTotal") %>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
</asp:Content>
